import { defineStore } from "pinia";
export const useProcesStore = defineStore({
    id: "menu",
    state: () => {
        return {
            menu: {
                isCollapse: false,
            },
        };
    },
    // 开启数据缓存
    persist: {
        enabled: true,
        strategies: [
            {
                key: 'menu',//设置存储的key  全部储存
                storage: localStorage,
                // paths: ["id"], //指定要长久化的字段  选择储存
            },
        ],
    },
});
